//
//  View_AudioPlayer.m
//  yjw-winner
//
//  Created by 王春辉 on 2018/9/14.
//  Copyright © 2018年 Shanghai decade financial information service co., LTD. All rights reserved.
//

#import "View_AudioPlayer.h"

@implementation View_AudioPlayer


+ (View_AudioPlayer *)audioPlayerView {
    return (View_AudioPlayer *)[[[NSBundle mainBundle] loadNibNamed:NSStringFromClass([self class]) owner:self options:nil] lastObject];
}
- (void)awakeFromNib {
    [super awakeFromNib];
    [self.progressSlider setThumbImage:[UIImage imageNamed:@"un_audio_slider_thumb"] forState:UIControlStateNormal];
    [self.progressSlider setThumbImage:[UIImage imageNamed:@"un_audio_slider_thumb"] forState:UIControlStateHighlighted];
    
    self.headerImageView.layer.masksToBounds = YES;
    self.headerImageView.layer.cornerRadius = 4.0f;
}


#pragma mark --mark EVENT

/**
 slider value 改变

 @param sender sender
 */
- (IBAction)audioProgressSliderValueChanged:(UISlider *)sender {
}

/**
 之前15秒

 @param sender sender
 */
- (IBAction)audioPreviousFiftyButtonClick:(UIButton *)sender {
    
}

/**
 以后15秒

 @param sender sender
 */
- (IBAction)audioForwardFiftyButtonClick:(UIButton *)sender {
    
}

/**
 上一曲

 @param sender sender
 */
- (IBAction)previousButtonClick:(UIButton *)sender {
    
}

/**
 下一曲

 @param sender sender
 */
- (IBAction)nextButtonClick:(UIButton *)sender {
    
}

/**
 播放暂停按钮

 @param sender sender
 */
- (IBAction)audioPlayButtonClick:(UIButton *)sender {
    
}

#pragma mark --mark 设置 audio 属性

/**
 设置头像

 @param url url
 */
- (void)audioSetHeadImageViewWithImageUrl:(NSString *)url {
    
}

/**
 设置content

 @param text text
 */
- (void)audioSetContentTextWith:(NSString *)text {
    
}

/**
 设置播放进度

 @param text text
 */
- (void)audioSetProgressLabelTextWith:(NSString *)text {
    
}

/**
 设置slider progress

 @param progress progress
 */
- (void)audioSetProgressSliderValueWith:(CGFloat)progress {
    
}

/**
 设置播放总时间

 @param text text
 */
- (void)audioSetTotalProgressLabelTextWith:(NSString *)text {
    
}

/**
 设置播放按钮播放状态

 @param isPause YES/NO
 */
- (void)audioSetPlayButtonStatus:(BOOL)isPause {
    
}
@end
